

package com.hazelcast.test.starter.answer;

import org.mockito.invocation.InvocationOnMock;

/**
 * A generic answer that passes all method invocations through to the delegate
 * and proxies the result.
 */
public class DelegatingAnswer extends AbstractAnswer {

    public DelegatingAnswer(Object delegate) {
        super(delegate);
    }

    @Override
    Object answer(InvocationOnMock invocation, String methodName, Object[] arguments) throws Exception {
        return invoke(invocation, arguments);
    }
}
